<?php
	if(!isset($_REQUEST['ajax'])){ $_REQUEST['ajax'] = "";}
	if($_REQUEST['ajax']!=true) include 'header.tpl.php';
?>
	<h2><?php echo $this->language['calendar_task'];?></h2>
	<div class="row">
		<div class="col-lg-9">
			<ul class="shortcut-buttons-set">
				<li>
					<a class="shortcut-button" href='#' onClick="showPage('?func=calendar_view&ajax=true');"><span>
					<img src="resources/images/icons/panel/cal_view.png" alt="icon" width="48px" height="48px" /><br />
					<?php echo $this->language['calendar_task'];?></span></a>
				</li>
				<?php if(check_permission('calendar_view_activity')){ ?>
				<li>
					<a class="shortcut-button" href='#' onClick="showPage('?func=calendar_view&activity=1&ajax=true');"><span>
					<img src="resources/images/icons/panel/cal_act.png" alt="icon" width="48px" height="48px" /><br />
					<?php echo $this->language['calendar_task_working'];?></span></a>
				</li>
				<?php } ?>
				<?php if(check_permission('calendar_view_project')){ ?>
				<li>
					<a class="shortcut-button" href='#' onClick="showPage('?func=calendar_view&project=1&ajax=true');"><span>
					<img src="resources/images/icons/panel/cal_view.png" alt="icon" width="48px" height="48px" /><br />
					<?php echo $this->language['calendar_project'];?></span></a>
				</li>
				<?php } ?>
			</ul>
		</div>
		<div class="col-lg-3">
			<img src='resources/images/note.png' alt="<?php echo $this->language['note'];?>" />
		</div>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<iframe src="?func=calendar_main<?php
			if(isset($this->activity)) echo "&activity=".$this->activity;
			if(isset($this->lich_id)) echo "&lich_id=".$this->lich_id; ?>" frameborder="0" width="100%" height="80%" scrolling="no" name="lich"></iframe>
		</div>
	</div>
<?php if(isset($this->breadcrumb) && isset($this->title_header)):?>
	<script type="text/javascript">
		$(function() {
			$("#title-header").text('<?php echo $this->title_header;?>');
			$("#breadcrumb").html('<?php echo build_breadcrumb($this->breadcrumb);?>');
		});
	</script>
<?php endif;?>
<?php
	if($_REQUEST['ajax']!=true) include 'footer.tpl.php';
?>